<php>
$stype = $_REQUEST['stype'];
if(empty($stype))$stype='gain';
$pageData = service('Credit')->search4User($stype);
if(empty($pageData)||empty($pageData['data'])){
</php>
	<div style="width:100%;text-align:center;margin-top:15px;">
	<php>$alert_message="暂无相关记录！";</php>
		<include file="../Public/alert_box.html" />
	</div>
<php>}else{</php>
<script>
    //鼠标移动表格效果
    inittable();
</script>
  			<div class="gift_list" style="margin-top:15px">
			  	<table cellspacing="0" cellpadding="0" border="0" width="100%" id="record_item_list">
					<tbody>
					  <tr rel="title">
					    <th style="text-align: center;">序号</th>
					    <th style="text-align: center;" class="line_l">积分类型</th>
					    <th style="text-align: center;" class="line_l">积分</th>
					    <th style="text-align: center;" class="line_l">获得时间</th>
					  </tr>
					  <volist id="vo" name="pageData['data']" >
						  <tr rel="{$i}">
						 		<td style="text-align: center;border-left: 0px;">{$i}</td>
						       	<td style="text-align: center;"><php>echo $vo['mode']='gain'?'获得积分':'使用积分';</php></td>
						       	<td style="text-align: right;">{$vo['credit']}</td>
						       	<td style="text-align: center;">{:paramMillisecond2Date($vo['gtime'],'Y-m-d H:i:s')}</td>
						  </tr>
					  </volist>
					</tbody>
				  	</table>
			  </div>
			  <div id="clear"></div>
			  <div>
				  <div class="page_box">{$pageData['html']}</div>
			  </div>
<php>}</php>

<input type="hidden" id="stype" value="{$stype}"><!-- 用于记录查看的积分类型 -->
